package xby.study.annotations.demo1;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        Field[] fs = AA.class.getFields();
        System.out.println(fs.length);
        for (Field f : fs) {
            System.out.println("-------------------------------------------------------------");
            System.out.println(f);
            Annotation[] as = f.getAnnotations();
            System.out.println(Arrays.toString(as));
            System.out.println("-------------------------------------------------------------");
        }
    }
}
